package com.szcinda.repository;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.time.LocalDate;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class LinePrice extends BaseEntity {
    private String businessType;
    private String transportType;
    private String unit;
    private String originPlace;
    private String destPlace;
    private String departurePort;
    private String feeName;
    private String feeType;
    private String currency;
    // 按重量计费，默认值为0
    private Double price = 0d;
    // 按体积计费，默认值为0
    private Double price2 = 0d;
    @Enumerated(EnumType.STRING)
    private CalculateType calculateType;
    private LocalDate startDate;
    private LocalDate endDate;
    private String remark;
    private double pb;

    private String belongId;
    private String organizationId;
    private String organizationName;
    private String opId;
    private String opName;
}
